<?php /* Smarty version 2.6.26, created on 2018-07-05 16:54:42
         compiled from D:%5Cwww%5Cvweb/admin%5Ctemplates/template/index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'D:\\www\\vweb/admin\\templates/template/index.html', 24, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<div class="nav"><span>模版管理</span></div>
<style type="text/css"> 
tbody tr td span{ padding:0 10px 0 10px;} 
</style> 
<div class="main"> 
	<table width="100%" class="ltable">
	  	<thead>
		  	<tr>
				<th>文件名称</th>  
				<th width="80">文件大小</th>
				<th width="80">操作</th>
				<th width="120">修改时间</td> 
		  	</tr>
	  	</thead>
		<tbody>
<?php if ($this->_tpl_vars['file_name'] || $this->_tpl_vars['path_name']): ?> 
	<?php if ($this->_tpl_vars['path_name']): ?> 
		<?php $_from = $this->_tpl_vars['path_name']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['p']):
?>	
			<tr>
				<td><span><img src="<?php echo $this->_tpl_vars['__APP__']; ?>
public/images/icon/close_file.png"/></span><a href="#"><?php echo $this->_tpl_vars['p']['name']; ?>
</a></td>  
				<td></td>
				<td><a href="?m=template&path=<?php echo $this->_tpl_vars['p']['path']; ?>
">进入目录</a></td>
				<td><?php echo ((is_array($_tmp=$this->_tpl_vars['p']['time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d %H:%M') : smarty_modifier_date_format($_tmp, '%Y-%m-%d %H:%M')); ?>
'</td>
			</tr> 
		<?php endforeach; endif; unset($_from); ?>
	<?php endif; ?>		
	<?php if ($this->_tpl_vars['file_name']): ?>
		<?php $_from = $this->_tpl_vars['file_name']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['f']):
?>	
			<tr>
				<td><span><img src="<?php echo $this->_tpl_vars['__APP__']; ?>
public/images/icon/file.png"/></span><a href="#"><?php echo $this->_tpl_vars['f']['name']; ?>
</a></td>  
				<td><?php echo $this->_tpl_vars['f']['size']; ?>
</td>
				<td><a href="?m=template&a=edit&path=<?php echo $this->_tpl_vars['f']['path']; ?>
">编辑</a></td>
				<td><?php echo ((is_array($_tmp=$this->_tpl_vars['f']['time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d %H:%M') : smarty_modifier_date_format($_tmp, '%Y-%m-%d %H:%M')); ?>
'</td>
			</tr>
		<?php endforeach; endif; unset($_from); ?>
	<?php endif; ?>
<?php else: ?>
	  	<tr><td colspan="4">没有数据</td></tr>
<?php endif; ?>
		</tbody> 
	</table> 
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 